import br.com.nooclix.salon.ui.screen.product.ProductWindow;

// ActionScript file

public function creation():void{
	
	this.titleLabel.text = "Opções de Produtos";
	
	newProduct.imageIcon.source = "br/com/nooclix/salon/ui/icons/menubutton/product-add.png";
	newProduct.labelName.text = "Novo";
	newProduct.onClick(function ():void{
		
		var productWindow:ProductWindow = new ProductWindow();
		productWindow.openPanel();
		productWindow.currentState = "create";
		
	});
	
	findProduct.imageIcon.source = "br/com/nooclix/salon/ui/icons/menubutton/product-search.png";
	findProduct.labelName.text = "Buscar";
	findProduct.onClick(function ():void{
		
		var productWindow:ProductWindow = new ProductWindow();
		productWindow.openPanel();
		productWindow.currentState = "search";
	});
	
}